<template>
  <div class="home">
    <div @click="gotoAnswer" class="goto-answer">进入答题</div>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'IndexView',
  components: {},
  data() {
    return {}
  },

  methods: {
    gotoAnswer() {
      this.$router.push('/answer')
    }
  }
}
</script>

<style lang="scss" scoped>
@import '@/assets/css/global-style.scss';
@import '@/assets/css/global-var.scss';
.home {
  height: 100vh;
  font-size: 1rem;
}

.goto-answer {
  @include position-center;
  @include display-center;
  height: 3.125rem;
  width: 5rem;
  background: $btn_blue;
  color: #fff;
  cursor: pointer;
}
</style>
